//大作业H1

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
  if (Serial.available() > 0) {
    char value = Serial.read();
    if (value == "Y" || value == 'y') {
      Serial.println("您确认了此次操作");
    }
    if (value == "N" || value == 'n') {
      Serial.println("您取消了此次操作");
    }
  }
  delay(1000);
}
